home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
How Would You Survive?
/
How Would You Survive (1995)(Grolier)[Mac-PC].iso
/
mac
/
VIKINGW.DIR
/
01655_Script_Right and Wrong
< prev
next >
Wrap
Text File
|
1995-09-12
|
4KB
|
177 lines
global gbeenclicked, gQuest
on VRightsRollovers1
set gbeenclicked = 0
if (not(CheckClickedStatus(gQuest))) then
if rollover(9) then
repeat while rollover(9)
VikingCursor
if (the mousedown) then
set gbeenclicked = 1
else
--the mouse is up
if gbeenclicked = 1 then
repeat while gbeenclicked = 1
RightWrong
end repeat
end if
end if
end repeat
else
if rollover(10) then
ArrowCursor
repeat while rollover(10)
set the locH of sprite 11 to 265
set the locV of sprite 11 to 308
updatestage
end repeat
set the locH of sprite 11 to 999
updatestage
else
if rollover(40) then
HandCursor
else
if rollover(41) then
HandCursor
else
if rollover(42) then
HandCursor
else
ArrowCursor
end if
end if
end if
end if
end if
end if
RandomQuestion(gQuest)
end
on VRightsRollovers2
set gbeenclicked = 0
if (not(CheckClickedStatus(gQuest))) then
if rollover(6) then
repeat while rollover(6)
VikingCursor
if (the mousedown) then
set gbeenclicked = 1
else
--the mouse is up
if gbeenclicked = 1 then
repeat while gbeenclicked = 1
AnimateLoop 6, 782, 4, "SV320301.AIF", 3
end repeat
end if
end if
end repeat
else
if rollover(10) then
ArrowCursor
repeat while rollover(10)
set the locH of sprite 11 to 271
set the locV of sprite 11 to 352
updatestage
end repeat
set the locH of sprite 11 to 999
updatestage
else
if rollover(12) then
ArrowCursor
repeat while rollover(12)
set the locH of sprite 13 to 424
set the locV of sprite 13 to 266
updatestage
end repeat
set the locH of sprite 13 to 999
updatestage
else
if rollover(14) then
ArrowCursor
repeat while rollover(14)
set the locH of sprite 15 to 424
set the locV of sprite 15 to 353
updatestage
end repeat
set the locH of sprite 15 to 999
updatestage
else
if rollover(39) then
HandCursor
else
if rollover(41) then
HandCursor
else
if rollover(42) then
HandCursor
else
ArrowCursor
end if
end if
end if
end if
end if
end if
end if
end if
RandomQuestion(gQuest)
end
on RightWrong
ArrowCursor
puppetsprite 6, true
puppetsprite 7, true
puppetsprite 8, true
set RunThruCount = 0
set gCast1 = the castNum of sprite 6
set gCast2 = the castNum of sprite 7
set gCast3 = the castNum of sprite 8
puppetsound "SV320301.AIF"
repeat while RunThruCount < 3 and (the MouseUp)
set the castNum of sprite 6 = gCast1 + 1
set the castNum of sprite 7 = gCast2 + 1
updatestage
Wait .3
if the mousedown then
exit repeat
end if
set the castNum of sprite 8 = gCast3 + 1
set the castNum of sprite 7 = gCast2
updatestage
Wait .3
if the mousedown then
exit repeat
end if
set the castNum of sprite 6 = gCast1
set the castNum of sprite 7 = gCast2 + 1
set the castNum of sprite 8 = gCast3
updatestage
Wait .3
if the mousedown then
exit repeat
end if
set the castNum of sprite 7 = gCast2
updatestage
Wait .3
if the mousedown then
exit repeat
end if
set RunThruCount = RunThruCount + 1
end repeat
set the castNum of sprite 6 = gCast1
set the castNum of sprite 7 = gCast2
set the castNum of sprite 8 = gCast3
updatestage
sound fadeOut 1, 3*60
puppetsprite 6, false
puppetsprite 7, false
puppetsprite 8, false
set gbeenclicked = 0
end